package config

type RouteConfig struct {
	Name         string
	Url          string
	Method       string
	Path         string
	Strategy     int
	RejectConfig *RejectConfig
	Unit         uint
}

type RouteListConfig struct {
	RouteList []*RouteConfig
}

func (r *RouteListConfig) AddRoute(route *RouteConfig) {
	r.RouteList = append(r.RouteList, route)
}

func NewRouteListConfig() *RouteListConfig {
	return &RouteListConfig{}
}
